package com.kun.base.shiro.dao;

import com.kun.base.model.User;
import com.kun.base.shiro.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by likun on 2016/8/12 0012.
 */
public interface ShiroDao {
    User findByUsername(String username);

    List<Integer> findRoleIdsByUser(int userId);

    List<Role> findRolesById(@Param("roleIds") List<Integer> roleIds);

    List<String> findResourceUrlsByRole(Integer id);
}
